package com.weixing.mall.provider.model.enums.sys;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.weixing.mall.base.enums.IBaseEnum;
import lombok.NoArgsConstructor;

/**
 * 菜单类型-枚举
 *
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/8/23 11:06
 * @Modified By:
 */

@NoArgsConstructor
public enum MenuTypeEnum implements IBaseEnum<Integer> {
    MENU_ROOT(0,"根节点"),
    MENU_LEVEL_1(1,"一级菜单"),
    MENU_LEVEL_2(2,"二级菜单"),
    MENU_LEVEL_3(3,"三级菜单"),
    MENU_LEVEL_4(4,"四级菜单"),
    MENU_BTN(5,"按钮"),
    MENU_HREF(6,"超链接");
    private int value;
    private String desp;

    MenuTypeEnum(int value, String desp) {
        this.value = value;
        this.desp = desp;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
